package com.qf.ssm.mapper;

import com.qf.ssm.po.CarBrand;
import com.qf.ssm.po.CarInfo;
import com.qf.ssm.qo.CarTypeQo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarManagementMapper {
     Integer insertCarInfo(@Param("carInfo") CarInfo carInfo);
     List<CarInfo> selectCarInfoList(@Param("carTypeQo") CarTypeQo carTypeQo);

     Integer updateById(@Param("carInfo")CarInfo carInfo,@Param("cid")Integer cid);

     Integer deleteById(@Param("cid")Integer cid);


     Integer updateStatusById(@Param("cid")Integer cid, @Param("status")Integer status);

     List<CarBrand> selectBrandList();

     CarInfo selectCarInfoById(@Param("cid")Integer cid);
}
